﻿<?xml version="1.0" encoding="utf-8"?>

<!--
AwpAdmin, an admin tool for Battlefield 3
Copyright (C) 2011 agentwite, Timi, Unseen, AlCapwn

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

You can contact us at http://bf3admin.codeplex.com/.
-->

<xs:schema id="CommandsSchema"
    targetNamespace="http://bf3admin.codeplex.com/"
    elementFormDefault="qualified"
    xmlns="http://bf3admin.codeplex.com/"
    xmlns:mstns="http://bf3admin.codeplex.com/"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
  <xs:element name="commands">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="command" maxOccurs="unbounded" minOccurs="0">
          <xs:complexType>
            <xs:attribute name="name" type="xs:string" use="required" />
            <xs:attribute name="rank" use="required">
              <xs:simpleType>
                <xs:restriction base="xs:integer">
                  <xs:minExclusive value="-1" />
                  <xs:maxInclusive value="2147483647" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
